#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "dialog.h"
 #include <QLayout>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setWindowTitle("Scylla");
    //this->setSizeConstraint(QLayout::SetFixedSize);
    setFixedSize(this->size());
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    a.setModal(1);
    a.setWindowFlags(Qt::Dialog);
    a.show();
}
